package cn.data.stream.annotation;

import cn.data.stream.config.DataStreamAutoConfiguration;
import cn.data.stream.config.DataStreamConfigRegistrar;
import cn.data.stream.config.DataStreamConsts;
import cn.data.stream.config.EnableDataStreamCondition;
import cn.data.stream.config.Ordered;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Import;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(value = {DataStreamAutoConfiguration.class,DataStreamConfigRegistrar.class})
public @interface EnableDataStreamConfig {

    String[] values() default {DataStreamConsts.NAMESPACE_APPLICATION};

    int order() default Ordered.LOWEST_PRECEDENCE;

}
